﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;

namespace RenderTheGraphic
{
    class SimpleEllipse:FrameworkElement
    {
        protected override void OnRender(DrawingContext drawingContext)
        {
            drawingContext.DrawEllipse(Brushes.Blue, new Pen(Brushes.Red, 24), new Point(this.RenderSize.Width / 2, this.RenderSize.Height / 2),
                this.RenderSize.Width / 2, this.RenderSize.Height / 2);
        }
    }
}
